<div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body">
          <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>个人信息</legend>
          </fieldset>
          <div class="layui-form">
            <table class="layui-table">
              <colgroup>
                <col width="150">
                <col >
                <col >
              </colgroup>
              <tbody>
                <tr>
                  <th>编号</th>
                  <td><?=$info['id']?></td>
                  <th>电话</th>
                  <td><?=$info['phone']?></td>
                  <th>状态</th>
                  <td><?=c('type.status')[$info['status']]?></td>
                </tr>
                <tr>
                  <th>昵称</th>
                  <td><?=$info['username']?></td>
                  <th>账户余额</th>
                  <td><?=$info['money']?></td>
                  <th>性别</th>
                  <td><?=c('type.sex')[$info['sex']]?></td>
                </tr>
                <tr>
                  <th>真实姓名</th>
                  <td><?=$info['name']?></td>
                  <th>积分余额</th>
                  <td><?=$info['money_jf']?></td>
                  <th>年龄</th>
                  <td><?=$info['age']?></td>
                </tr>

                <tr>
                  <th>级别</th>
                  <td><?=c('type.user_level')[$info['level']]?></td>
                  <th>收益余额</th>
                  <td><?=$info['money_sy']?></td>
                  <th>云店总数量</th>
                  <td><?=$info['vip_sum_nums']?></td>
                </tr>

                <tr>
                  <th>创建时间</th>
                  <td><?=com_time_format($info['create_time'])?></td>
                  <th>冻结推广奖余额</th>
                  <td><?=$info['money_tg']?></td>
                  <th>云店剩余数量</th>
                  <td><?=$info['vip_nums']?></td>
                </tr>


              </tbody>
            </table>
          </div>
          <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>下级列表</legend>
          </fieldset>
          <div class="layui-form">
            <table class="layui-table">
              <colgroup>
                <col>
                <col>
                <col>
                <col>
                <col>
                <col>
              </colgroup>
              <thead>
                <tr>
                  <th>编号 </th>
                  <th>用户昵称</th>
                  <th>电话</th>
                  <th>性别 </th>
                  <th>年龄 </th>
                  <th>余额 </th>
                  <th>积分</th>
                </tr>
              </thead>
              <tbody>
                <?php foreach($list as $key=>$value):?>
                <tr>
                    <th><?=$value["id"]?></th>
                      <td><?=$value["username"]?></td>
                      <td><?=$value["phone"]?></td>
                      <td><?=c('type.sex')[$value["sex"]]?></td>
                      <td><?=$value["age"]?></td>
                      <td><?=$value["money"]?></td>
                      <td><?=$value["money_jf"]?></td>
                </tr>
                <?php endforeach; ?>
              </tbody>
            </table>
          </div>
      </div>
    </div>
</div>
